package ar.edu.unlp.info.dssd.acciones;

import java.util.Date;

import ar.edu.unlp.info.dssd.modelo.Conductor;
import ar.edu.unlp.info.dssd.servicios.ConductorService;


public class LoginInspector extends AbstractAccion{
	private static final long serialVersionUID = -3366719829719763681L;

	private ConductorService conductorService;

    public ConductorService getConductorService() {
		return conductorService;
	}

	
	public String execute() throws Exception {
		  if(!getDni().equals("tere") || !getPassword().equals("tere")){
	            addActionError("Invalid user name or password! Please try again!");
	            return ERROR;
	    }else{
	      return SUCCESS;
	    }
		

  }

	private String dni = null;
	
	private String password = null;
	
	public String getPassword() {
		return password;
	}
	public String getDni() {
		return dni;
	}
}
